package javawork;
import java.util.Scanner;

public class section2_4 {
    public static void main(String[] args) {
        // 创建Scanner对象用于读取输入
        Scanner input = new Scanner(System.in);
        
        // 提示用户输入磅数值
        System.out.print("Enter a number in pounds: ");
        
        // 读取用户输入的磅数
        double pounds = input.nextDouble();
        
        // 转换为千克（1磅 = 0.454千克）
        double kilograms = pounds * 0.454;
        
        // 输出转换结果
        System.out.println(pounds + " pounds is " + kilograms + " kilograms");
        
        // 关闭Scanner
        input.close();
    }
}
